const Router = require('vue-router');

export default new Router({
	mode: 'hash',
	linkActiveClass: 'on',
	routes: [{
		path: '/',
		component: () =>
			import('@/components/Index'),
		children: [{
			path: '',
			name: 'Home',
			component: () =>
				import('@/components/Home'),
			meta: {
				title: '首页'
			}
		}, {
			path: '/CrowdFunding',
			name: 'CrowdFunding',
			component: () =>
				import('@/components/CrowdFunding'),
			meta: {
				requiresAuth: true,
				title: '众筹'
			}
		}, {
			path: '/Assets',
			name: 'Assets',
			component: () =>
				import('@/components/Assets'),
			meta: {
				requiresAuth: true,
				title: '我的'
			}
		}]
	}, {
		path: '/PropertyDetails',
		name: 'PropertyDetails',
		component: () =>
			import('@/components/PropertyDetails'),
		meta: {
			requiresAuth: true,
			title: '众筹房产详情'
		}
	}, {
		path: '/ParticipationInstructions',
		name: 'ParticipationInstructions',
		component: () =>
			import('@/components/ParticipationInstructions'),
		meta: {
			requiresAuth: true,
			title: '参与说明'
		}
	}, {
		path: '/ProjectProgress',
		name: 'ProjectProgress',
		component: () =>
			import('@/components/ProjectProgress'),
		meta: {
			requiresAuth: true,
			title: '项目进展'
		}
	}, {
		path: '/CrowdRaisingRecords',
		name: 'CrowdRaisingRecords',
		component: () =>
			import('@/components/CrowdRaisingRecords'),
		meta: {
			requiresAuth: true,
			title: '众筹记录'
		}
	}, {
		path: '/ForMy',
		name: 'ForMy',
		component: () =>
			import('@/components/ForMy'),
		meta: {
			requiresAuth: true,
			title: '我的'
		}
	}, {
		path: '/Mine',
		name: 'Mine',
		component: () =>
			import('@/components/Mine'),
		meta: {
			requiresAuth: true,
			title: '我的'
		}
	}, {
		path: '/MyProject',
		name: 'MyProject',
		component: () =>
			import('@/components/MyProject'),
		meta: {
			requiresAuth: true,
			title: '我的项目'
		}
	}, {
		path: '/MyDividend',
		name: 'MyDividend',
		component: () =>
			import('@/components/MyDividend'),
		meta: {
			requiresAuth: true,
			title: '我的分红'
		}
	}, {
		path: '/MySettlement',
		name: 'MySettlement',
		component: () =>
			import('@/components/MySettlement'),
		meta: {
			requiresAuth: true,
			title: '我的结算'
		}
	}, {
		path: '/MyDividendRecord',
		name: 'MyDividendRecord',
		component: () =>
			import('@/components/MyDividendRecord'),
		meta: {
			requiresAuth: true,
			title: '我的分红记录'
		}
	}, {
		path: '/MySettlementRecord',
		name: 'MySettlementRecord',
		component: () =>
			import('@/components/MySettlementRecord'),
		meta: {
			requiresAuth: true,
			title: '我的结算记录'
		}
	}, {
		path: '/MyProjectProgress',
		name: 'MyProjectProgress',
		component: () =>
			import('@/components/MyProjectProgress'),
		meta: {
			requiresAuth: true,
			title: '我的项目进展'
		}
	}, {
		path: '/MoneyDetails',
		name: 'MoneyDetails',
		component: () =>
			import('@/components/MoneyDetails'),
		meta: {
			requiresAuth: true,
			title: '我的项目金额详情'
		}
	}, {
		path: '/Login',
		name: 'Login',
		component: () =>
			import('@/components/Login'),
		meta: {
			title: '登录'
		}
	}, {
		path: '/Register',
		name: 'Register',
		component: () =>
			import('@/components/Register'),
		meta: {
			title: '注册'
		}
	}, {
		path: '/FindPwd',
		name: 'FindPwd',
		component: () =>
			import('@/components/FindPwd'),
		meta: {
			title: '忘记密码'
		}
	}, {
		path: '/FindPwdAux',
		name: 'FindPwdAux',
		component: () =>
			import('@/components/FindPwdAux'),
		meta: {
			title: '忘记密码助记词查询'
		}
	}, {
		path: '/Invite',
		name: 'Invite',
		component: () =>
			import('@/components/Invite'),
		meta: {
			requiresAuth: true,
			title: '我的邀请码'
		}
	}, {
		path: '/Safety',
		name: 'Safety',
		component: () =>
			import('@/components/Safety'),
		meta: {
			requiresAuth: true,
			title: '安全中心'
		}
	}, {
		path: '/UpdatePayPwd',
		name: 'UpdatePayPwd',
		component: () =>
			import('@/components/UpdatePayPwd'),
		meta: {
			requiresAuth: true,
			title: '操作交易密码'
		}
	}, {
		path: '/UpdatePwd',
		name: 'UpdatePwd',
		component: () =>
			import('@/components/UpdatePwd'),
		meta: {
			requiresAuth: true,
			title: '修改登录密码'
		}
	}, {
		path: '/UpdateMb',
		name: 'UpdateMb',
		component: () =>
			import('@/components/UpdateMb'),
		meta: {
			requiresAuth: true,
			title: '忘记交易密码'
		}
	}, {
		path: '/Auxiliaries',
		name: 'Auxiliaries',
		component: () =>
			import('@/components/Auxiliaries'),
		meta: {
			requiresAuth: true,
			title: '助记词'
		}
	}, {
		path: '/Lang',
		name: 'Lang',
		component: () =>
			import('@/components/Lang'),
		meta: {
			requiresAuth: true,
			title: '多语言'
		}
	}, {
		path: '/ToChange',
		name: 'ToChange',
		component: () =>
			import('@/components/ToChange'),
		meta: {
			requiresAuth: true,
			title: '收款'
		}
	}, {
		path: '/OutChange',
		name: 'OutChange',
		component: () =>
			import('@/components/OutChange'),
		meta: {
			requiresAuth: true,
			title: '付款'
		}
	}, {
		path: '/MyTeam',
		name: 'MyTeam',
		component: () =>
			import('@/components/MyTeam'),
		meta: {
			requiresAuth: true,
			title: '我的团队'
		}
	}, {
		path: '/MyReward',
		name: 'MyReward',
		component: () =>
			import('@/components/MyReward'),
		meta: {
			requiresAuth: true,
			title: '我的奖励'
		}
	}, {
		path: '/NewsList',
		name: 'NewsList',
		component: () =>
			import('@/components/NewsList'),
		meta: {
			requiresAuth: true,
			title: '公告'
		}
	}, {
		path: '/NewsDetails',
		name: 'NewsDetails',
		component: () =>
			import('@/components/NewsDetails'),
		meta: {
			requiresAuth: true,
			title: '公告详情'
		}
	}, {
		path: '/RegisterTrue',
		name: 'RegisterTrue',
		component: () =>
			import('@/components/RegisterTrue'),
		meta: {
			title: '分享注册'
		}
	}, {
		path: '/Qr',
		name: 'Qr',
		component: () =>
			import('@/components/Qr'),
		meta: {
			title: '扫一扫'
		}
	}]
})